package com.njsf.service;

import com.github.pagehelper.PageInfo;
import com.njsf.dto.ResponseJson;
import com.njsf.pojo.Admin;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService {
    /**检查登录是否成功
     * @param adminName
     * @param pwd
     * @return
     */
    ResponseJson checkLogin(String adminName, String pwd, HttpServletRequest request);

    PageInfo<Admin> getAdmins(Integer start, Integer pageSize);

    ResponseJson delAdmin(Integer id);
<<<<<<< HEAD
=======

    /*查询一条用户记录*/
    Admin getOneAdmin(Integer id);

    /*修改管理员用户信息*/
    ResponseJson updateAdmin(Admin admin);
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
}
